#include <iostream>
#include <string>

#include "Search.hpp"

const std::string input = "./data/processed_html/processed.txt";

int main()
{
    SearchArea::Searcher *search = new SearchArea::Searcher();
    search->InitSearch(input);

    std::string query;
    std::string json_result;
    while (1)
    {
        std::cout << "Please Enter You Query: ";
        std::getline(std::cin,query);

        search->Search(query, json_result);
        std::cout << json_result << std::endl;
    }
    return 0;
}